#ifndef MONITORINGWARNRECODE_H
#define MONITORINGWARNRECODE_H

#include <QWidget>
#include "wareRecodeModel.h"
#include "warnRecodeTabModel.h"
namespace Ui {
class MonitoringWarnRecode;
}

class MonitoringWarnRecode : public QWidget
{
    Q_OBJECT

public:
    explicit MonitoringWarnRecode(QWidget *parent = nullptr);
    ~MonitoringWarnRecode();
QList<wareRecodeModel> getRecodeList(const QString &jsonString);
public slots:
    void handleDataReceived(const QByteArray &);
protected:
    void showEvent(QShowEvent *event) override;
private:
    Ui::MonitoringWarnRecode *ui;
    warnRecodeTabModel devmodel;
    QList<wareRecodeModel> recodeList;
};

#endif // MONITORINGWARNRECODE_H
